home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 November
/
CHIP Kasım 1997.iso
/
ARACLAR
/
DRHARD
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1997-10-02
|
5KB
|
181 lines
@echo off
cls
cd\araclar\drhard
echo ************************* DR.HARDWARE SYSINFO **************************
echo
echo Installation onto Hard disk
echo
echo
echo Please press any key if you want to install DR. HARDWARE
if "%1" == "" goto INSTFIRSTHD
if "%1" == "c:" goto INST
if "%1" == "d:" goto INST
if "%1" == "e:" goto INST
if "%1" == "f:" goto INST
if "%1" == "g:" goto INST
if "%1" == "h:" goto INST
if "%1" == "i:" goto INST
if "%1" == "j:" goto INST
if "%1" == "k:" goto INST
if "%1" == "l:" goto INST
if "%1" == "m:" goto INST
if "%1" == "n:" goto INST
if "%1" == "o:" goto INST
if "%1" == "p:" goto INST
if "%1" == "q:" goto INST
if "%1" == "r:" goto INST
if "%1" == "s:" goto INST
if "%1" == "t:" goto INST
if "%1" == "u:" goto INST
if "%1" == "v:" goto INST
if "%1" == "w:" goto INST
if "%1" == "x:" goto INST
if "%1" == "y:" goto INST
if "%1" == "z:" goto INST
goto INSTFIRSTHD
:INSTFIRSTHD
echo into the directory \DRHARD on drive C:\.
echo
echo Note:
echo Additional command line parameters allow you to determine the
echo target drive and directory by your own.
echo Syntax : INSTALL X: Directory name
echo Examples:
echo [INSTALL D: TEST] Installs the program in directory "TEST" on D:\
echo [INSTALL E:] Installs the program in the default directory
echo \DRHARD on drive E:\
goto LETSGO
:INST
if "%2" == "" goto NODIR
echo into directory \%2 on drive %1.
goto LETSGO
:NODIR
echo into directory \DRHARD on drive %1.
goto LETSGO
:LETSGO
echo
echo Press CTRL+C to quit installation now.
echo
echo ************************************************************************
PAUSE >NUL
cls
if "%1" == "" goto INSTTOC
if "%2" == "" goto INSTSTDDIR
md %1\%2
if not exist %1\%2\drhard.exe goto LETSCOPY
cls
echo !!Warning!!
echo The target directory contains a file named DRHARD.EXE.
echo Note that elder program files would be overwritten now.
echo To abort installation now press CTRL+C.
pause >nul
goto LETSCOPY
:LETSCOPY
rem if errorlevel 4 goto ERRMESSAGE
rem if errorlevel 1 goto ERRMESSAGE
echo Copying...
copy drhard.* %1\%2 >nul
copy drharde.* %1\%2 >nul
copy *.txt %1\%2 >nul
copy file_id.diz %1\%2 >nul
copy *.frm %1\%2 >nul
rem copy comparis.dat %1\%2 >nul
copy user.dat %1\%2 >nul
copy readme.bat %1\%2 >nul
goto ENDMESSAGE
:INSTSTDDIR
md %1\DRHARD >nul
if not exist %1\drhard\drhard.exe goto CPYSTDDIR
cls
echo !!Warning!!
echo The target directory contains a file named DRHARD.EXE.
echo Note that elder program files would be overwritten now.
echo To abort installation now press CTRL+C.
echo Abbruch mit STRG+C bzw. CTRL+C.
pause >nul
goto CPYSTDDIR
:CPYSTDDIR
rem if errorlevel 4 goto ERRMESSAGE
rem if errorlevel 1 goto ERRMESSAGE
echo Copying...
copy drhard.* %1\DRHARD >nul
copy drharde.* %1\DRHARD >nul
copy *.txt %1\drhard >nul
copy file_id.diz %1\drhard >nul
copy *.frm %1\drhard >nul
rem copy comparis.dat %1\drhard >nul
copy user.dat %1\drhard >nul
copy readme.bat %1\drhard >nul
goto ENDMESSAGE
:INSTTOC
md c:\drhard
if not exist c:\drhard\drhard.exe goto CPYTOC
cls
echo !!Warning!!
echo The target directory contains a file named DRHARD.EXE.
echo Note that elder program files would be overwritten now.
echo To abort installation now press CTRL+C.
pause >nul
goto CPYTOC
:CPYTOC
echo Copying ...
copy drhard.* c:\drhard >nul
copy drharde.* c:\drhard >nul
copy *.txt c:\drhard >nul
copy file_id.diz c:\drhard >nul
copy *.frm c:\drhard >nul
rem copy comparis.dat c:\drhard >nul
copy user.dat c:\drhard >nul
copy readme.bat c:\drhard >nul
goto ENDMESSAGE
:ERRMESSAGE
cls
echo **************************************
echo Input error - define drive again!!!
echo Any key...
echo **************************************
goto END
:ENDMESSAGE
echo
echo ********************************************************
echo Installation completed!
echo
echo Start the program by switching to the program directory
if "%1"=="" goto STARTSTD
if "%2"=="" goto STARTDRV
goto STARTDIRDRV
:STARTSTD
echo C:\. Enter: [cd drhard]
goto STARTEXE
:STARTDRV
echo %1\. Enter: [cd drhard]
goto STARTEXE
:STARTDIRDRV
echo %1\. Enter: [cd %2]
goto STARTEXE
:STARTEXE
echo ...and then load the EXE file...
echo Enter: [drhard]
echo
echo Press any key...
echo ********************************************************
goto END
:END
pause >nul
echo on